/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.gu.derp.model;

import java.util.List;

/**
 *
 * @author jensc
 * 
 * Interface to communicate between the application and the database
 * 
 */
public interface IController {

    public boolean accountExists(String name);

    public Account getAccount(String name);

    public void addAccount(Account account);

    public void removeAccount(Account account);

    public void changePassword(Account account, String password);

    // add a feed to a specific user
    public void addFeed(Account account, Feed feed);
    
    // removes a feed from a specific user
    public void removeFeed(Account account, Feed feed);

    // returns all feeds a specific user has subscribed to
    public List<Feed> getFeeds(Account account);
}
